<form id="pagerForm" method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME)}">
	<input type="hidden" name="pageNum" value="{$currentPage|default='1'}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
	<input type="hidden" name="search_where[name][like]" value="{$_REQUEST.search_where.name.like}"/>
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return dwzSearch(this, 'dialog');" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME)}" method="post">
		<div class="searchBar">
	        <table class="searchContent" style="margin:0 15;">
	            <tr>
	                <td>顾客名称：</td>
	                <td>
	                   <input type="text" name="search_where[name][like]" size="16" value="{$search_where.name.like}" class="medium" >
	                </td>
	                <td width="50%"></td>
	                <td align="right">
	                	<div class="buttonActive">
	                		<div class="buttonContent">
	                			<button type="submit">检索</button>
	                		</div>
	                	</div>
	                </td>
	            </tr>
	        </table>
		</div>
	</form>
</div>
	<div class="pageContent">
		<table class="table" layoutH="88" targetType="dialog" width="100%">
			<thead>
				<tr>
					<th width="80">查找带回</th>
					<th>ID</th>
					<th orderfield="goodName">顾客名称</th>
					<th orderfield="contacts">联系人</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="v">
					<tr>				
						<td>
							<a class="btnSelect" href="javascript:$.bringBack({customer_code:'{$v['customer_code']}', name:'{$v['name']}<if condition="$v['type']">-{$v['type']}</if>',contacts:'{$v['contacts']}'})" title="查找带回">选择</a>
						</td>
						<td>{$v['id']}</td>
						<td>{$v['name']}<if condition="$v['type']">-{$v['type']}</if></td>
						<td>{$v['contacts']}</td>
					</tr>
				</foreach>
			</tbody>
		</table>
	
		<div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select name="numPerPage" onchange="dwzPageBreak({$Think.config.TMPL_L_DELIM}targetType:'dialog', numPerPage:this.value{$Think.config.TMPL_R_DELIM})" >
					<option value="10" <if condition="$numPerPage eq 10">selected</if>>10</option>
					<option value="20" <if condition="$numPerPage eq 20">selected</if>>20</option>
					<option value="50" <if condition="$numPerPage eq 50">selected</if>>50</option>
					<option value="100" <if condition="$numPerPage eq 100">selected</if>>100</option>
				</select>
				<span>条，共{$totalCount}条</span>
			</div>

			<div class="pagination" targetType="dialog" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$currentPage}"></div>
		</div>
</div>